/**
 * Copyright (C) 2013-2014 the original author or authors.
 */
package com.foreveross.bsl.mdm.ios.application;

import javax.ws.rs.GET;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import com.foreveross.bsl.mdm.ios.application.vo.MdmCommandParamVo;

/**
 * @description
 *
 * @author heyaowen
 * @version v1.0
 *
 * @2014-7-18
 *
 */
@Path(value = "/iosMdmCmd")
public interface MdmCmdApplication {
	
	/**
	 *  处理指令
	 * @param cmdCode 指令代码
	 * @param apnsToken apns token
	 * @param cmdValue 指令值：如有些指令需要传送值 pin:xxx 
	 */
	@PUT
	@Path("/{cmdCode}/{apnsToken}")
	@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
	public void cmdHandler(@PathParam("cmdCode") String cmdCode, @PathParam("apnsToken") String apnsToken, 
			 MdmCommandParamVo cmdValue);

	@GET
	@Path("/")
	@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
	public String getCmds();
}
